package unity.messenger.security.exceptions;

import unity.messenger.exceptions.UnityMessengerException;

public class KeyPairGenerationException extends UnityMessengerException {

	private static final long serialVersionUID = 8499131190029154538L;

	public static enum Error
	{
		UNSUPPORTED_ALGORITHM,
		INVALID_ELLIPTIC_CURVE_PARAMETERS,
	}

	private Error error;
	
	public KeyPairGenerationException() {
	}

	public KeyPairGenerationException(String arg0) {
		super(arg0);
	}

	public KeyPairGenerationException(Throwable arg0) {
		super(arg0);
	}

	public KeyPairGenerationException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

	public Error getError()
	{
		return this.error;
	}
	
	public KeyPairGenerationException setError(Error error)
	{
		this.error = error;
		return this;
	}
}
